const npminstall = require('npminstall');

(async () => {
    await npminstall({
        pkgs: [
            { name: 'chalk', version: 'latest' },
        ],
        root: process.cwd() + '/aaa', 
        registry: 'https://registry.npmmirror.com/',
    })
})()